﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="InputStudentAnswers.aspx.cs" Inherits="ExamAnalysis.Input.InputStudentAnswers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" width="800">
        <tr>
            <td style="width:160px;" valign="top">
                <img src="../Images/main/button-examresult.jpg" />
            </td>
            <td align="left">
                 <ext:Panel runat="server" Height="200" Title="录入考试结果" Width="600">
                    <TopBar>
                        <ext:StatusBar runat="server">
                            <Items>
                                <ext:Label Text="选择考试" runat="server" />
                                <ext:DropDownField ID="DropDownField1" runat="server" Width="300">
                                    <Component>
                                        <ext:GridPanel ID="GridPanel1" Height="200" runat="server">
                                            <ColumnModel>
                                                <Columns>
                                                    <ext:Column ID="Column12" runat="server" Width="290"  HideTitleEl="true" DataIndex="ExamName" />
                                                </Columns>
                                            </ColumnModel>
                                            <SelectionModel>
                                                <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" Mode="Single">
                                                    <DirectEvents>
                                                        <Select OnEvent="RowSelect_ExamInfo" Buffer="250">
                                                            <ExtraParams>
                                                                <ext:Parameter Name="ExamID" Value="record.getId()" Mode="Raw" />
                                                            </ExtraParams>
                                                        </Select>
                                                    </DirectEvents>
                                                </ext:RowSelectionModel>
                                            </SelectionModel>
                                            <Store>
                                                <ext:Store ID="Store1" runat="server">
                                                    <Model>
                                                        <ext:Model ID="Model4" runat="server" IDProperty="ExamID">
                                                            <Fields>
                                                                <ext:ModelField Name="ExamID" />
                                                                <ext:ModelField Name="ExamName" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                            <BottomBar>
                                                <ext:Toolbar ID="Toolbar5" runat="server">
                                                    <Items>
                                                        <ext:Button ID="Button1" Text="下载成绩登记表" runat="server" OnDirectClick="Button_Click" />
                                                    </Items>
                                                </ext:Toolbar>
                                            </BottomBar>
                                        </ext:GridPanel>
                                    </Component>
                                </ext:DropDownField>
                                <ext:ToolbarFill runat="server" />
                            </Items>
                        </ext:StatusBar>
                    </TopBar>
                    <Items>
                        <ext:GridPanel ID="GridPanel_StInExem" runat="server"  Width="600" Flex="1" Height="300" Frame="false">
                            <Store>
                                <ext:Store ID="Store_StInExem" runat="server">
                                    <Model>
                                        <ext:Model ID="Model1" runat="server" IDProperty="StudentID">
                                            <Fields>
                                                <ext:ModelField Name="ExamID" />
                                                <ext:ModelField Name="StudentID" />
                                                <ext:ModelField Name="StudentName" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <ColumnModel ID="ColumnModel1" runat="server">
                                <Columns>
                                    <ext:Column ID="Column2" Flex="1" runat="server"  HideTitleEl="true" DataIndex="StudentName"
                                        Width="590">
                                    </ext:Column>
                                </Columns>
                            </ColumnModel>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel2" runat="server" Mode="Single">
                                    <DirectEvents>
                                        <Select Buffer="250">
                                            <ExtraParams>
                                                <ext:Parameter Name="ExamID" Value="record.getId()" Mode="Raw" />
                                            </ExtraParams>
                                        </Select>
                                    </DirectEvents>
                                </ext:RowSelectionModel>
                            </SelectionModel>
                        </ext:GridPanel>
                    </Items>
                    <BottomBar>
                        <ext:StatusBar runat="server">
                            <Items>
                                <ext:Label Text="上传选定同学的成绩：" runat="server"></ext:Label>
                                <ext:FileUploadField ID="AnswerFile" Width="300" runat="server" Icon="Attach" ButtonText="浏览" />
                                <ext:Button ID="uploadAnswer" runat="server" Text="上传" OnDirectClick="uploadAnswer_DirectClick"></ext:Button>
                                <ext:ToolbarFill runat="server" />
                            </Items>
                        </ext:StatusBar>
                    </BottomBar>
                 </ext:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
